﻿using Lbb.Common;
using Lbb.Configuration;

namespace Lbb.User
{
    public static class UserConfig
    {
        internal const string CONFIG_PRE_KEY = "user";

        #region Props
        public static string DefQuestion
        {
            get
            {
                return ConfigHelper.GetAppSettingValue(CONFIG_PRE_KEY, "DefQuestion");
            }
        }

        public static string DefPortrait
        {
            get
            {
                return ConfigHelper.GetAppSettingValue(CONFIG_PRE_KEY, "DefPortrait");
            }
        }

        public static string DefAnswer
        {
            get
            {
                return ConfigHelper.GetAppSettingValue(CONFIG_PRE_KEY, "DefAnswer");
            }
        }

        public static bool EnabledEmailLogin
        {
            get
            {
                return ConfigHelper.GetAppSettingValue(CONFIG_PRE_KEY, "EnabledEmailLogin").ToBool() ?? false;
            }
        }

        public static string SuperPassword
        {
            get
            {
                return ConfigHelper.GetAppSettingValue(CONFIG_PRE_KEY, "SuperPassword");
            }
        }
        #endregion Props

    }
}
